<template>
  <transition name="slide-fade">
    <div class="activity" v-if="activity && activity.length">
      <div class="mask"></div>
      <div class="container">
        <ul class="content">
          <li v-for="(item, index) in activity" :key="index" class="list">
            <span :style="{ backgroundColor: item.icon_color }">
              {{ item.icon_name }}
            </span>
            <p>{{ item.description }}</p>
          </li>
        </ul>
      </div>
    </div>
  </transition>
</template>

<script>
export default {
  props: {
    activity: {
      type: Array,
      default: function() {
        return [];
      }
    }
  }
};
</script>

<style lang="less" scoped>
.container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  width: 100%;
  height: 150px;
  background-color: #fff;
}

.activity {
  .content {
    padding: 10px;
    font-size: var(--font-size);
  }
  .list {
    display: flex;
    margin-bottom: 5px;
    span {
      margin-right: 5px;
    }
  }
}
</style>
